<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
    </script>

    <link rel="stylesheet" href="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/css/bootstrap.min.css">

    <script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<form class="form-horizontal" th:action="@{/user/updateMoney}" method="post">
    <div class="form-group">
        <label for="inputEmail3" class="col-sm-2 control-label" >金额</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="inputEmail3" name="money" placeholder="金额" th:value="${money.money}">
        </div>
    </div>
    <div class="form-group">
        <label  class="col-sm-2 control-label">备注</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" name="remark" placeholder="备注" th:value="${money.remark}">
            <input type="text" class="form-control" name="id"  th:value="${money.id}" style="display: none">
        </div>
    </div>
    <div class="form-group">
        <label  class="col-sm-2 control-label">分类</label>
        <div class="col-sm-10">
            <select id="p" name="moneyTagId" class="form-control" th:value="${money.tag}">
                <option th:each="moneytagList:${moneytagList}"
                        th:text="${moneytagList.moneytag}"
                        th:value="${moneytagList.id}"
                        th:selected="${moneytagList.id eq money.tag}"
                        id="moneyTagId">
                </option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <input type="submit" class="btn btn-default" value="提交"/>
        </div>
    </div>
</form>

</body>
</html>